// 定义枚举，枚举默认从0开始，即BOY是0，GIRL是1
enum SexType {
  BOY, // 默认是0
  GIRL, // 默认是1
}

let user = {
  name: "dubeibei",
  sex: SexType.GIRL,
};
console.log(user);
